extends base

block vars
  - var title = 'Resend Account Verification Email?'
  - var description = 'Didn\'t receive your account verification email? No worries!'
  - var bodytag = 'login'

block body
  .container.custom-container
    .va-wrapper
      .view.login-view.container
        if organization
          .header.text-center #{organization.name}
        if invalid_sp_token
          .row
            .alert.alert-warning.invalid-sp-token-warning
              p.
                This verification link is no longer valid.  Please request
                a new link from the form below.

        .box.row

          if !sptoken
            .email-password-area.col-xs-12.large.col-sm-12
              if invalid_sp_token
                p &nbsp;
              else
                .header
                  span.
                    Didn't receive your account verification email?
              p.
                Enter your email address below and we'll resend your account
                verification email.  You will be sent an email which you will
                need to open to continue. You may need to check your spam
                folder.

              if error
                .alert.alert-danger.bad-login.form-error
                  p #{error}

              if formErrors
                .alert.alert-danger.bad-login
                  each error in formErrors
                    p #{error.error}

              p &nbsp;

              form.login-form.form-horizontal(method='post', role='form')
                input(name='_csrf', type='hidden', value=csrfToken)

                .form-group.group-email
                  label.col-sm-4 Email

                  div.col-sm-8
                    input.form-control(placeholder='Email', required='true', name='email', type='text')

                div
                  button.login.btn.btn-login.btn-sp-green(type='submit') Submit

          if stormpathConfig.web.login.enabled
            a.forgot(href="#{stormpathConfig.web.login.uri}") Back to Log In
